3.1.8 \(\int (c+d x) (a+a \sec (e+f x))^2 \, dx\) [8]

Optimal. Leaf size=134 \[ \frac {a^2 (c+d x)^2}{2 d}-\frac {4 i a^2 (c+d x) \text {ArcTan}\left (e^{i (e+f x)}\right )}{f}+\frac {a^2 d \log (\cos (e+f x))}{f^2}+\frac {2 i a^2 d \text {PolyLog}\left (2,-i e^{i (e+f x)}\right )}{f^2}-\frac {2 i a^2 d \text {PolyLog}\left (2,i e^{i (e+f x)}\right )}{f^2}+\frac {a^2 (c+d x) \tan (e+f x)}{f} \]

[Out]

1/2*a^2*(d*x+c)^2/d-4*I*a^2*(d*x+c)*arctan(exp(I*(f*x+e)))/f+a^2*d*ln(cos(f*x+e))/f^2+2*I*a^2*d*polylog(2,-I*e
xp(I*(f*x+e)))/f^2-2*I*a^2*d*polylog(2,I*exp(I*(f*x+e)))/f^2+a^2*(d*x+c)*tan(f*x+e)/f

________________________________________________________________________________________

Rubi [A]
time = 0.09, antiderivative size = 134, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 6, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {4275, 4266, 2317, 2438, 4269, 3556} \begin {gather*} -\frac {4 i a^2 (c+d x) \text {ArcTan}\left (e^{i (e+f x)}\right )}{f}+\frac {a^2 (c+d x) \tan (e+f x)}{f}+\frac {a^2 (c+d x)^2}{2 d}+\frac {2 i a^2 d \text {Li}_2\left (-i e^{i (e+f x)}\right )}{f^2}-\frac {2 i a^2 d \text {Li}_2\left (i e^{i (e+f x)}\right )}{f^2}+\frac {a^2 d \log (\cos (e+f x))}{f^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(c + d*x)*(a + a*Sec[e + f*x])^2,x]

[Out]

(a^2*(c + d*x)^2)/(2*d) - ((4*I)*a^2*(c + d*x)*ArcTan[E^(I*(e + f*x))])/f + (a^2*d*Log[Cos[e + f*x]])/f^2 + ((
2*I)*a^2*d*PolyLog[2, (-I)*E^(I*(e + f*x))])/f^2 - ((2*I)*a^2*d*PolyLog[2, I*E^(I*(e + f*x))])/f^2 + (a^2*(c +
 d*x)*Tan[e + f*x])/f

Rule 2317

Int[Log[(a_) + (b_.)*((F_)^((e_.)*((c_.) + (d_.)*(x_))))^(n_.)], x_Symbol] :> Dist[1/(d*e*n*Log[F]), Subst[Int
[Log[a + b*x]/x, x], x, (F^(e*(c + d*x)))^n], x] /; FreeQ[{F, a, b, c, d, e, n}, x] && GtQ[a, 0]

Rule 2438

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> Simp[-PolyLog[2, (-c)*e*x^n]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 3556

Int[tan[(c_.) + (d_.)*(x_)], x_Symbol] :> Simp[-Log[RemoveContent[Cos[c + d*x], x]]/d, x] /; FreeQ[{c, d}, x]

Rule 4266

Int[csc[(e_.) + Pi*(k_.) + (f_.)*(x_)]*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[-2*(c + d*x)^m*(ArcTanh[E
^(I*k*Pi)*E^(I*(e + f*x))]/f), x] + (-Dist[d*(m/f), Int[(c + d*x)^(m - 1)*Log[1 - E^(I*k*Pi)*E^(I*(e + f*x))],
 x], x] + Dist[d*(m/f), Int[(c + d*x)^(m - 1)*Log[1 + E^(I*k*Pi)*E^(I*(e + f*x))], x], x]) /; FreeQ[{c, d, e,
f}, x] && IntegerQ[2*k] && IGtQ[m, 0]

Rule 4269

Int[csc[(e_.) + (f_.)*(x_)]^2*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[(-(c + d*x)^m)*(Cot[e + f*x]/f), x
] + Dist[d*(m/f), Int[(c + d*x)^(m - 1)*Cot[e + f*x], x], x] /; FreeQ[{c, d, e, f}, x] && GtQ[m, 0]

Rule 4275

Int[(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(n_.)*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[
(c + d*x)^m, (a + b*Csc[e + f*x])^n, x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && IGtQ[m, 0] && IGtQ[n, 0]

Rubi steps

\begin {align*} \int (c+d x) (a+a \sec (e+f x))^2 \, dx &=\int \left (a^2 (c+d x)+2 a^2 (c+d x) \sec (e+f x)+a^2 (c+d x) \sec ^2(e+f x)\right ) \, dx\\ &=\frac {a^2 (c+d x)^2}{2 d}+a^2 \int (c+d x) \sec ^2(e+f x) \, dx+\left (2 a^2\right ) \int (c+d x) \sec (e+f x) \, dx\\ &=\frac {a^2 (c+d x)^2}{2 d}-\frac {4 i a^2 (c+d x) \tan ^{-1}\left (e^{i (e+f x)}\right )}{f}+\frac {a^2 (c+d x) \tan (e+f x)}{f}-\frac {\left (a^2 d\right ) \int \tan (e+f x) \, dx}{f}-\frac {\left (2 a^2 d\right ) \int \log \left (1-i e^{i (e+f x)}\right ) \, dx}{f}+\frac {\left (2 a^2 d\right ) \int \log \left (1+i e^{i (e+f x)}\right ) \, dx}{f}\\ &=\frac {a^2 (c+d x)^2}{2 d}-\frac {4 i a^2 (c+d x) \tan ^{-1}\left (e^{i (e+f x)}\right )}{f}+\frac {a^2 d \log (\cos (e+f x))}{f^2}+\frac {a^2 (c+d x) \tan (e+f x)}{f}+\frac {\left (2 i a^2 d\right ) \text {Subst}\left (\int \frac {\log (1-i x)}{x} \, dx,x,e^{i (e+f x)}\right )}{f^2}-\frac {\left (2 i a^2 d\right ) \text {Subst}\left (\int \frac {\log (1+i x)}{x} \, dx,x,e^{i (e+f x)}\right )}{f^2}\\ &=\frac {a^2 (c+d x)^2}{2 d}-\frac {4 i a^2 (c+d x) \tan ^{-1}\left (e^{i (e+f x)}\right )}{f}+\frac {a^2 d \log (\cos (e+f x))}{f^2}+\frac {2 i a^2 d \text {Li}_2\left (-i e^{i (e+f x)}\right )}{f^2}-\frac {2 i a^2 d \text {Li}_2\left (i e^{i (e+f x)}\right )}{f^2}+\frac {a^2 (c+d x) \tan (e+f x)}{f}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B] Both result and optimal contain complex but leaf count is larger than twice the leaf count of optimal. \(330\) vs. \(2(134)=268\).
time = 5.57, size = 330, normalized size = 2.46 \begin {gather*} \frac {a^2 (1+\cos (e+f x))^2 \sec ^4\left (\frac {1}{2} (e+f x)\right ) \left (8 c f \tanh ^{-1}\left (\sin (e)+\cos (e) \tan \left (\frac {f x}{2}\right )\right )+8 d \text {ArcTan}(\cot (e)) \tanh ^{-1}\left (\sin (e)+\cos (e) \tan \left (\frac {f x}{2}\right )\right )-\frac {4 d \csc (e) \left ((f x-\text {ArcTan}(\cot (e))) \left (\log \left (1-e^{i (f x-\text {ArcTan}(\cot (e)))}\right )-\log \left (1+e^{i (f x-\text {ArcTan}(\cot (e)))}\right )\right )+i \text {PolyLog}\left (2,-e^{i (f x-\text {ArcTan}(\cot (e)))}\right )-i \text {PolyLog}\left (2,e^{i (f x-\text {ArcTan}(\cot (e)))}\right )\right )}{\sqrt {\csc ^2(e)}}+\frac {2 f (c+d x) \sin \left (\frac {f x}{2}\right )}{\left (\cos \left (\frac {e}{2}\right )-\sin \left (\frac {e}{2}\right )\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )}+\frac {2 f (c+d x) \sin \left (\frac {f x}{2}\right )}{\left (\cos \left (\frac {e}{2}\right )+\sin \left (\frac {e}{2}\right )\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )}-2 d f x \tan (e)+f x (2 c f+d f x+2 d \tan (e))+2 d (\log (\cos (e+f x))+f x \tan (e))\right )}{8 f^2} \end {gather*}

Warning: Unable to verify antiderivative.

[In]

Integrate[(c + d*x)*(a + a*Sec[e + f*x])^2,x]

[Out]

(a^2*(1 + Cos[e + f*x])^2*Sec[(e + f*x)/2]^4*(8*c*f*ArcTanh[Sin[e] + Cos[e]*Tan[(f*x)/2]] + 8*d*ArcTan[Cot[e]]
*ArcTanh[Sin[e] + Cos[e]*Tan[(f*x)/2]] - (4*d*Csc[e]*((f*x - ArcTan[Cot[e]])*(Log[1 - E^(I*(f*x - ArcTan[Cot[e
]]))] - Log[1 + E^(I*(f*x - ArcTan[Cot[e]]))]) + I*PolyLog[2, -E^(I*(f*x - ArcTan[Cot[e]]))] - I*PolyLog[2, E^
(I*(f*x - ArcTan[Cot[e]]))]))/Sqrt[Csc[e]^2] + (2*f*(c + d*x)*Sin[(f*x)/2])/((Cos[e/2] - Sin[e/2])*(Cos[(e + f
*x)/2] - Sin[(e + f*x)/2])) + (2*f*(c + d*x)*Sin[(f*x)/2])/((Cos[e/2] + Sin[e/2])*(Cos[(e + f*x)/2] + Sin[(e +
 f*x)/2])) - 2*d*f*x*Tan[e] + f*x*(2*c*f + d*f*x + 2*d*Tan[e]) + 2*d*(Log[Cos[e + f*x]] + f*x*Tan[e])))/(8*f^2
)

________________________________________________________________________________________

Maple [A]
time = 0.56, size = 235, normalized size = 1.75

method result size
derivativedivides \(\frac {a^{2} c \tan \left (f x +e \right )-\frac {a^{2} d e \tan \left (f x +e \right )}{f}+\frac {a^{2} d \left (\left (f x +e \right ) \tan \left (f x +e \right )+\ln \left (\cos \left (f x +e \right )\right )\right )}{f}+2 a^{2} c \ln \left (\sec \left (f x +e \right )+\tan \left (f x +e \right )\right )-\frac {2 a^{2} d e \ln \left (\sec \left (f x +e \right )+\tan \left (f x +e \right )\right )}{f}+\frac {2 a^{2} d \left (-\left (f x +e \right ) \ln \left (1+i {\mathrm e}^{i \left (f x +e \right )}\right )+\left (f x +e \right ) \ln \left (1-i {\mathrm e}^{i \left (f x +e \right )}\right )+i \dilog \left (1+i {\mathrm e}^{i \left (f x +e \right )}\right )-i \dilog \left (1-i {\mathrm e}^{i \left (f x +e \right )}\right )\right )}{f}+a^{2} c \left (f x +e \right )-\frac {a^{2} d e \left (f x +e \right )}{f}+\frac {a^{2} d \left (f x +e \right )^{2}}{2 f}}{f}\) \(235\)
default \(\frac {a^{2} c \tan \left (f x +e \right )-\frac {a^{2} d e \tan \left (f x +e \right )}{f}+\frac {a^{2} d \left (\left (f x +e \right ) \tan \left (f x +e \right )+\ln \left (\cos \left (f x +e \right )\right )\right )}{f}+2 a^{2} c \ln \left (\sec \left (f x +e \right )+\tan \left (f x +e \right )\right )-\frac {2 a^{2} d e \ln \left (\sec \left (f x +e \right )+\tan \left (f x +e \right )\right )}{f}+\frac {2 a^{2} d \left (-\left (f x +e \right ) \ln \left (1+i {\mathrm e}^{i \left (f x +e \right )}\right )+\left (f x +e \right ) \ln \left (1-i {\mathrm e}^{i \left (f x +e \right )}\right )+i \dilog \left (1+i {\mathrm e}^{i \left (f x +e \right )}\right )-i \dilog \left (1-i {\mathrm e}^{i \left (f x +e \right )}\right )\right )}{f}+a^{2} c \left (f x +e \right )-\frac {a^{2} d e \left (f x +e \right )}{f}+\frac {a^{2} d \left (f x +e \right )^{2}}{2 f}}{f}\) \(235\)
risch \(\frac {a^{2} d \,x^{2}}{2}+a^{2} c x +\frac {2 i a^{2} \left (d x +c \right )}{f \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )}-\frac {2 a^{2} d \ln \left ({\mathrm e}^{i \left (f x +e \right )}\right )}{f^{2}}+\frac {a^{2} d \ln \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )}{f^{2}}-\frac {4 i a^{2} c \arctan \left ({\mathrm e}^{i \left (f x +e \right )}\right )}{f}+\frac {4 i a^{2} d e \arctan \left ({\mathrm e}^{i \left (f x +e \right )}\right )}{f^{2}}-\frac {2 a^{2} \ln \left (1+i {\mathrm e}^{i \left (f x +e \right )}\right ) d x}{f}-\frac {2 a^{2} \ln \left (1+i {\mathrm e}^{i \left (f x +e \right )}\right ) d e}{f^{2}}+\frac {2 a^{2} \ln \left (1-i {\mathrm e}^{i \left (f x +e \right )}\right ) d x}{f}+\frac {2 a^{2} \ln \left (1-i {\mathrm e}^{i \left (f x +e \right )}\right ) d e}{f^{2}}+\frac {2 i a^{2} d \dilog \left (1+i {\mathrm e}^{i \left (f x +e \right )}\right )}{f^{2}}-\frac {2 i a^{2} d \dilog \left (1-i {\mathrm e}^{i \left (f x +e \right )}\right )}{f^{2}}\) \(274\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((d*x+c)*(a+a*sec(f*x+e))^2,x,method=_RETURNVERBOSE)

[Out]

1/f*(a^2*c*tan(f*x+e)-a^2/f*d*e*tan(f*x+e)+a^2/f*d*((f*x+e)*tan(f*x+e)+ln(cos(f*x+e)))+2*a^2*c*ln(sec(f*x+e)+t
an(f*x+e))-2*a^2/f*d*e*ln(sec(f*x+e)+tan(f*x+e))+2*a^2/f*d*(-(f*x+e)*ln(1+I*exp(I*(f*x+e)))+(f*x+e)*ln(1-I*exp
(I*(f*x+e)))+I*dilog(1+I*exp(I*(f*x+e)))-I*dilog(1-I*exp(I*(f*x+e))))+a^2*c*(f*x+e)-a^2/f*d*e*(f*x+e)+1/2*a^2/
f*d*(f*x+e)^2)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x+c)*(a+a*sec(f*x+e))^2,x, algorithm="maxima")

[Out]

1/2*(a^2*d*f^2*x^2 + 2*a^2*c*f^2*x + (a^2*d*f^2*x^2 + 2*a^2*c*f^2*x)*cos(2*f*x + 2*e)^2 + (a^2*d*f^2*x^2 + 2*a
^2*c*f^2*x)*sin(2*f*x + 2*e)^2 + 2*(a^2*d*f^2*x^2 + 2*a^2*c*f^2*x)*cos(2*f*x + 2*e) + 8*(a^2*d*f^3*cos(2*f*x +
 2*e)^2 + a^2*d*f^3*sin(2*f*x + 2*e)^2 + 2*a^2*d*f^3*cos(2*f*x + 2*e) + a^2*d*f^3)*integrate((x*cos(2*f*x + 2*
e)*cos(f*x + e) + x*sin(2*f*x + 2*e)*sin(f*x + e) + x*cos(f*x + e))/(f*cos(2*f*x + 2*e)^2 + f*sin(2*f*x + 2*e)
^2 + 2*f*cos(2*f*x + 2*e) + f), x) + (a^2*d*cos(2*f*x + 2*e)^2 + a^2*d*sin(2*f*x + 2*e)^2 + 2*a^2*d*cos(2*f*x
+ 2*e) + a^2*d)*log(cos(2*f*x + 2*e)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*e) + 1) + 2*(a^2*c*f*cos(2*f*x +
 2*e)^2 + a^2*c*f*sin(2*f*x + 2*e)^2 + 2*a^2*c*f*cos(2*f*x + 2*e) + a^2*c*f)*log(cos(f*x + e)^2 + sin(f*x + e)
^2 + 2*sin(f*x + e) + 1) - 2*(a^2*c*f*cos(2*f*x + 2*e)^2 + a^2*c*f*sin(2*f*x + 2*e)^2 + 2*a^2*c*f*cos(2*f*x +
2*e) + a^2*c*f)*log(cos(f*x + e)^2 + sin(f*x + e)^2 - 2*sin(f*x + e) + 1) + 4*(a^2*d*f*x + a^2*c*f)*sin(2*f*x
+ 2*e))/(f^2*cos(2*f*x + 2*e)^2 + f^2*sin(2*f*x + 2*e)^2 + 2*f^2*cos(2*f*x + 2*e) + f^2)

________________________________________________________________________________________

Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 572 vs. \(2 (119) = 238\).
time = 2.93, size = 572, normalized size = 4.27 \begin {gather*} \frac {-2 i \, a^{2} d \cos \left (f x + e\right ) {\rm Li}_2\left (i \, \cos \left (f x + e\right ) + \sin \left (f x + e\right )\right ) - 2 i \, a^{2} d \cos \left (f x + e\right ) {\rm Li}_2\left (i \, \cos \left (f x + e\right ) - \sin \left (f x + e\right )\right ) + 2 i \, a^{2} d \cos \left (f x + e\right ) {\rm Li}_2\left (-i \, \cos \left (f x + e\right ) + \sin \left (f x + e\right )\right ) + 2 i \, a^{2} d \cos \left (f x + e\right ) {\rm Li}_2\left (-i \, \cos \left (f x + e\right ) - \sin \left (f x + e\right )\right ) + {\left (2 \, a^{2} c f - 2 \, a^{2} d e + a^{2} d\right )} \cos \left (f x + e\right ) \log \left (\cos \left (f x + e\right ) + i \, \sin \left (f x + e\right ) + i\right ) - {\left (2 \, a^{2} c f - 2 \, a^{2} d e - a^{2} d\right )} \cos \left (f x + e\right ) \log \left (\cos \left (f x + e\right ) - i \, \sin \left (f x + e\right ) + i\right ) + 2 \, {\left (a^{2} d f x + a^{2} d e\right )} \cos \left (f x + e\right ) \log \left (i \, \cos \left (f x + e\right ) + \sin \left (f x + e\right ) + 1\right ) - 2 \, {\left (a^{2} d f x + a^{2} d e\right )} \cos \left (f x + e\right ) \log \left (i \, \cos \left (f x + e\right ) - \sin \left (f x + e\right ) + 1\right ) + 2 \, {\left (a^{2} d f x + a^{2} d e\right )} \cos \left (f x + e\right ) \log \left (-i \, \cos \left (f x + e\right ) + \sin \left (f x + e\right ) + 1\right ) - 2 \, {\left (a^{2} d f x + a^{2} d e\right )} \cos \left (f x + e\right ) \log \left (-i \, \cos \left (f x + e\right ) - \sin \left (f x + e\right ) + 1\right ) + {\left (2 \, a^{2} c f - 2 \, a^{2} d e + a^{2} d\right )} \cos \left (f x + e\right ) \log \left (-\cos \left (f x + e\right ) + i \, \sin \left (f x + e\right ) + i\right ) - {\left (2 \, a^{2} c f - 2 \, a^{2} d e - a^{2} d\right )} \cos \left (f x + e\right ) \log \left (-\cos \left (f x + e\right ) - i \, \sin \left (f x + e\right ) + i\right ) + {\left (a^{2} d f^{2} x^{2} + 2 \, a^{2} c f^{2} x\right )} \cos \left (f x + e\right ) + 2 \, {\left (a^{2} d f x + a^{2} c f\right )} \sin \left (f x + e\right )}{2 \, f^{2} \cos \left (f x + e\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x+c)*(a+a*sec(f*x+e))^2,x, algorithm="fricas")

[Out]

1/2*(-2*I*a^2*d*cos(f*x + e)*dilog(I*cos(f*x + e) + sin(f*x + e)) - 2*I*a^2*d*cos(f*x + e)*dilog(I*cos(f*x + e
) - sin(f*x + e)) + 2*I*a^2*d*cos(f*x + e)*dilog(-I*cos(f*x + e) + sin(f*x + e)) + 2*I*a^2*d*cos(f*x + e)*dilo
g(-I*cos(f*x + e) - sin(f*x + e)) + (2*a^2*c*f - 2*a^2*d*e + a^2*d)*cos(f*x + e)*log(cos(f*x + e) + I*sin(f*x
+ e) + I) - (2*a^2*c*f - 2*a^2*d*e - a^2*d)*cos(f*x + e)*log(cos(f*x + e) - I*sin(f*x + e) + I) + 2*(a^2*d*f*x
 + a^2*d*e)*cos(f*x + e)*log(I*cos(f*x + e) + sin(f*x + e) + 1) - 2*(a^2*d*f*x + a^2*d*e)*cos(f*x + e)*log(I*c
os(f*x + e) - sin(f*x + e) + 1) + 2*(a^2*d*f*x + a^2*d*e)*cos(f*x + e)*log(-I*cos(f*x + e) + sin(f*x + e) + 1)
 - 2*(a^2*d*f*x + a^2*d*e)*cos(f*x + e)*log(-I*cos(f*x + e) - sin(f*x + e) + 1) + (2*a^2*c*f - 2*a^2*d*e + a^2
*d)*cos(f*x + e)*log(-cos(f*x + e) + I*sin(f*x + e) + I) - (2*a^2*c*f - 2*a^2*d*e - a^2*d)*cos(f*x + e)*log(-c
os(f*x + e) - I*sin(f*x + e) + I) + (a^2*d*f^2*x^2 + 2*a^2*c*f^2*x)*cos(f*x + e) + 2*(a^2*d*f*x + a^2*c*f)*sin
(f*x + e))/(f^2*cos(f*x + e))

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} a^{2} \left (\int c\, dx + \int 2 c \sec {\left (e + f x \right )}\, dx + \int c \sec ^{2}{\left (e + f x \right )}\, dx + \int d x\, dx + \int 2 d x \sec {\left (e + f x \right )}\, dx + \int d x \sec ^{2}{\left (e + f x \right )}\, dx\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x+c)*(a+a*sec(f*x+e))**2,x)

[Out]

a**2*(Integral(c, x) + Integral(2*c*sec(e + f*x), x) + Integral(c*sec(e + f*x)**2, x) + Integral(d*x, x) + Int
egral(2*d*x*sec(e + f*x), x) + Integral(d*x*sec(e + f*x)**2, x))

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x+c)*(a+a*sec(f*x+e))^2,x, algorithm="giac")

[Out]

integrate((d*x + c)*(a*sec(f*x + e) + a)^2, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (a+\frac {a}{\cos \left (e+f\,x\right )}\right )}^2\,\left (c+d\,x\right ) \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + a/cos(e + f*x))^2*(c + d*x),x)

[Out]

int((a + a/cos(e + f*x))^2*(c + d*x), x)

________________________________________________________________________________________